#!/bin/sh

N=10
if [ ! -z $1 ]; then
  N=$1
fi

SLEEPER=1
if [ ! -z $2 ]; then
  SLEEPER=$2
fi

while [ $N -gt 0 ]
do
  propeller-load -P
  if [ $? != 0 ]; then
    exit 1
  fi
  sleep $SLEEPER
  N=`expr $N - 1`
done
